'use strict';

const { log } = require('console');
const { Controller } = require('egg');
const fs = require('fs');
const path = require('path');
class Studentdata extends Controller {
  async studentdata() {
    const { ctx } = this;
    const studentdata = await this.app.mysql.query('SELECT * FROM student');
    ctx.body = studentdata;
    console.log(studentdata);
  }
}


module.exports = Studentdata;
